export const GetUrlString = (url, name) => {
  console.log(url, name);
  let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  const _url = url.split('?')[1];
  let r = _url.match(reg);
  var context = '';
  if (r != null) context = r[2];
  reg = null;
  r = null;
  return context == null || context == '' || context == 'undefined' ? '' : context;
};
